import {combineReducers} from 'redux'
import todos from './Todos'
import visibilityFilter from './VisibilityFilters'

/**
 * 使用combineReducers() 工具类合并Reducer 
 */
export default combineReducers({
    todos,
    visibilityFilter
})

// 在store.js里有测试

// 或 自定义合并Reducer
// const todoApp = (state={},action)=>{
//     return {
//         visibilityFilter: visibilityFilter(state.visibilityFilter,action),
//         todos: todos(state.todos,action)
//     }
// }
